package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.CouponsBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponsBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CouponsBean record);

    CouponsBean selectByPrimaryKey(Integer id);

    List<CouponsBean> selectAll();

    int updateByPrimaryKey(CouponsBean record);

    List<CouponsBean> listCoupons(Page<CouponsBean> page, @Param("couponsBean") CouponsBean couponsBean);
}